<section id="color" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/color/" data-property-name="color" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="color">Share</a> <a target="_blank" href="http://caniuse.com/#feat=css3-colors" data-tooltip="See on Can I use..." rel="external">Can I use</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/color" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#color"><span>#</span>color</a></h2><div class="property-description"><p>Defines the color of the <strong>text</strong>.</p></div></header><style type="text/css">.color { font-size: 1.5em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: transparent;">color: transparent;</code></p><div class="example-description"><p>Applies a <strong>transparent</strong> color to the text. The text will still take up the <em>space</em> it should.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-transparent">Hello world</div></div></aside><style type="text/css">#color-transparent{ color:transparent;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: red;">color: red;</code></p><div class="example-description"><p>You can use one of the <strong><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/color_value">140+ color names</a></strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-red">Hello world</div></div></aside><style type="text/css">#color-red{ color:red;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: #05ffb0;">color: #05ffb0;</code></p><div class="example-description"><p>You can use <strong>hexadecimal</strong> color codes.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-05ffb0">Hello world</div></div></aside><style type="text/css">#color-05ffb0{ color:#05ffb0;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: rgb(50, 115, 220);">color: rgb(50, 115, 220);</code></p><div class="example-description"><p>You can use <strong>rgb()</strong> color codes:</p><ul><li>the first value is for <code>red</code></li><li>the second value is for <code>green</code></li><li>the third value is for <code>blue</code></li></ul><p>Each of them can have a value between <strong>0</strong> and <strong>255</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-rgb50-115-220">Hello world</div></div></aside><style type="text/css">#color-rgb50-115-220{ color:rgb(50, 115, 220);}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: rgba(0, 0, 0, 0.5);">color: rgba(0, 0, 0, 0.5);</code></p><div class="example-description"><p>You can use <strong>rgba()</strong> color codes:</p><ul><li>the first 3 values are for <code>rgb</code></li><li>the 4th value is for the <code>alpha</code> channel and defines the opacity of the color</li></ul><p>The alpha value can go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-rgba0-0-0-05">Hello world</div></div></aside><style type="text/css">#color-rgba0-0-0-05{ color:rgba(0, 0, 0, 0.5);}</style><style type="text/css">#color-rgba0-0-0-05{ background: #05ffb0; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: hsl(14, 100%, 53%);">color: hsl(14, 100%, 53%);</code></p><div class="example-description"><p>You can use <strong>hsl()</strong> color codes:</p><ul><li>the first value is for <code>hue</code> and can go from <strong>0</strong> to <strong>359</strong></li><li>the second value is for <code>saturation</code> and go from <strong>0%</strong> to <strong>100%</strong></li><li>the third value is for <code>luminosity</code> and go from <strong>0%</strong> to <strong>100%</strong></li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-hsl14-100-53">Hello world</div></div></aside><style type="text/css">#color-hsl14-100-53{ color:hsl(14, 100%, 53%);}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="color: hsla(14, 100%, 53%, 0.6);">color: hsla(14, 100%, 53%, 0.6);</code></p><div class="example-description"><p>You can use <strong>hsl()a</strong> color codes:</p><ul><li>the first 3 values are for <code>hsl</code></li><li>the 4th value is for the <code>alpha</code> channel and defines the opacity of the color</li></ul><p>The alpha value can go from zero <strong>0</strong> (transparent) to one <strong>1</strong> (opaque).</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div color" id="color-hsla14-100-53-06">Hello world</div></div></aside><style type="text/css">#color-hsla14-100-53-06{ color:hsla(14, 100%, 53%, 0.6);}</style></section></section><section id="font-family" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font-family/" data-property-name="font-family" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-family">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-family" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font-family"><span>#</span>font-family</a></h2><div class="property-description"></div></header><style type="text/css">.font-family { font-size: 1.5em;line-height: 1.2; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: &quot;Source Sans Pro&quot;, &quot;Arial&quot;, sans-serif;">font-family: &quot;Source Sans Pro&quot;, &quot;Arial&quot;, sans-serif;</code></p><div class="example-description"><p>When using <strong>multiple</strong> values, the <code>font-family</code> list of <strong>font families</strong> defines the <strong>priority</strong> in which the browser should choose the font family.</p><p>The browser will look for each family on the user&#39;s <strong>computer</strong> and in any <strong>@font-face</strong> resource.</p><p>The list is prioritized from <strong>left</strong> to <strong>right</strong>: it will use the first value if it&#39;s available, or go to the next one, until the end of the list is reached. The <strong>default</strong> font family is defined by the browser preferences.</p><p>In this example, the browser will try to use <code>Source Sans Pro</code> if it&#39;s available. If it can&#39;t find it, it will try to use <code>Arial</code>. If it&#39;s not available either, it will use the browser&#39;s <code>sans-serif</code> font.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-source-sans-pro-arial-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-source-sans-pro-arial-sans-serif{ font-family:"Source Sans Pro", "Arial", sans-serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: serif;">font-family: serif;</code></p><div class="example-description"><p>The browser will use a <strong>serif</strong> font family: all characters have <strong>stroke endings</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-serif{ font-family:serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: sans-serif;">font-family: sans-serif;</code></p><div class="example-description"><p>The browser will use a <strong>sans-serif</strong> font family: <strong>no</strong> character has stroke endings.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-sans-serif">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-sans-serif{ font-family:sans-serif;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: monospace;">font-family: monospace;</code></p><div class="example-description"><p>The browser will use a <strong>monospace</strong> font family: all characters have the <strong>same width</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-monospace">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-monospace{ font-family:monospace;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: cursive;">font-family: cursive;</code></p><div class="example-description"><p>The browser will use a <strong>cursive</strong> font family.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-cursive">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-cursive{ font-family:cursive;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-family: fantasy;">font-family: fantasy;</code></p><div class="example-description"><p>The browser will use a <strong>fantasy</strong> font family.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-family" id="font-family-fantasy">Hello world<br>The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#font-family-fantasy{ font-family:fantasy;}</style></section></section><section id="font-size" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font-size/" data-property-name="font-size" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-size">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-size" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font-size"><span>#</span>font-size</a></h2><div class="property-description"><p>Defines the size of the text.</p></div></header><style type="text/css">.font-size { line-height: 1.2; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: medium;">font-size: medium;</code></p><div class="example-description"><p>The text will use the browser&#39;s default <strong>medium</strong> size.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-medium"><p>Hello world</p><p>The quick brown fox jumps over the lazy dog</p></div></div></aside><style type="text/css">#font-size-medium{ font-size:medium;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: 20px;">font-size: 20px;</code></p><div class="example-description"><p>You can use <strong>pixel</strong> values.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-20px"><p>Hello world</p><p>The quick brown fox jumps over the lazy dog</p></div></div></aside><style type="text/css">#font-size-20px{ font-size:20px;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: 1.2em;">font-size: 1.2em;</code></p><div class="example-description"><p>You can use <strong>em</strong> values.</p><p>The value is <strong>relative</strong> to the <strong>parent</strong>&#39;s <code>font-size</code>.<br>As a result, the value will <strong>cascade</strong> if used on child elements.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-12em"><div class="parent">Parent container: <strong>18px</strong><div class="block block--alpha">Font-size: 1.2em = <strong>21.6px</strong><div class="block block--pink">Font-size: 1.2em = <strong>25.92px</strong><div class="block block--yellow">Font-size: 1.2em = <strong>31.104px</strong></div></div></div></div></div></div></aside><style type="text/css">#font-size-12em .parent { font-size: 18px; }#font-size-12em .block { font-size: 1.2em;margin-top: 0.25rem; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: 1.2rem;">font-size: 1.2rem;</code></p><div class="example-description"><p>You can use <strong>rem</strong> values.</p><p>The value is <strong>relative</strong> to the <strong>root element</strong>&#39;s <code>font-size</code>, which is the <code>&lt;html&gt;</code> element.<br>As a result, the value will <strong>not</strong> vary depending on the <em>depth</em> of the element in the HTML hierarchy, and will reamin context independent.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-12rem"><div class="parent"><code>&lt;html&gt;</code> root element: <strong>18px</strong><div class="block block--alpha">Font-size: 1.2rem = <strong>21.6px</strong><div class="block block--pink">Font-size: 1.2rem = <strong>21.6px</strong><div class="block block--yellow">Font-size: 1.2rem = <strong>21.6px</strong></div></div></div></div></div></div></aside><style type="text/css">#font-size-12rem .parent { font-size: 18px; }#font-size-12rem .block { font-size: 1.2rem;margin-top: 0.25rem; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: 90%;">font-size: 90%;</code></p><div class="example-description"><p>You can use <strong>percentage</strong> values. They act like em values.</p><p>The value is <strong>relative</strong> to the <strong>parent</strong>&#39;s <code>font-size</code>.<br>As a result, the value will <strong>cascade</strong> if used on child elements.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-90"><div class="parent">Parent container: <strong>18px</strong><div class="block block--alpha">Font-size: 90% = <strong>16.2</strong><div class="block block--pink">Font-size: 90% = <strong>14.58px</strong><div class="block block--yellow">Font-size: 90% = <strong>13.122px</strong></div></div></div></div></div></div></aside><style type="text/css">#font-size-90 .parent { font-size: 18px; }#font-size-90 .block { font-size: 90%;margin-top: 0.25rem; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: smaller;">font-size: smaller;</code></p><div class="example-description"><p>You can use <strong>relative keywords</strong>. The value is relative to the <strong>parent</strong>.</p><p>The following are available:</p><ul><li><code>larger</code></li><li><code>smaller</code></li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-smaller"><div class="parent">Parent container: <strong>18px</strong><div class="block block--alpha">Font-size: smaller<div class="block block--pink">Font-size: smaller<div class="block block--yellow">Font-size: smaller</div></div></div></div></div></div></aside><style type="text/css">#font-size-smaller .parent { font-size: 18px; }#font-size-smaller .block { font-size: smaller;margin-top: 0.25rem; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-size: x-large;">font-size: x-large;</code></p><div class="example-description"><p>You can use <strong>absolute keywords</strong>. The value is relative to the <strong>root element</strong> <code>&lt;html&gt;</code>.</p><p>The following are available:</p><ul><li><code>xx-small</code></li><li><code>x-small</code></li><li><code>small</code></li><li><code>medium</code></li><li><code>large</code></li><li><code>x-large</code></li><li><code>xx-large</code></li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-size" id="font-size-x-large"><div class="parent"><code>&lt;html&gt;</code> root element: <strong>18px</strong><div class="block block--alpha">Font-size: x-large<div class="block block--pink">Font-size: x-large<div class="block block--yellow">Font-size: x-large</div></div></div></div></div></div></aside><style type="text/css">#font-size-x-large .parent { font-size: 18px; }#font-size-x-large .block { font-size: x-large;margin-top: 0.25rem; }</style></section></section><section id="font-style" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font-style/" data-property-name="font-style" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-style">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-style" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font-style"><span>#</span>font-style</a></h2><div class="property-description"><p>Defines how much the text is slanted.</p></div></header><style type="text/css">.font-style { font-size: 1.2em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-style: normal;">font-style: normal;</code></p><div class="example-description"><p>The text is <strong>not</strong> slanted.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-style" id="font-style-normal">Hello world</div></div></aside><style type="text/css">#font-style-normal{ font-style:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-style: italic;">font-style: italic;</code></p><div class="example-description"><p>Use the <strong>italic</strong> version of the font: the letters are slightly slanted.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-style" id="font-style-italic">Hello world</div></div></aside><style type="text/css">#font-style-italic{ font-style:italic;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-style: oblique;">font-style: oblique;</code></p><div class="example-description"><p>Use the <strong>oblique</strong> version of the font: the letters are more slanted than italic.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-style" id="font-style-oblique">Hello world</div></div></aside><style type="text/css">#font-style-oblique{ font-style:oblique;}</style></section></section><section id="font-variant" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font-variant/" data-property-name="font-variant" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-variant">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-variant" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font-variant"><span>#</span>font-variant</a></h2><div class="property-description"><p>Defines which glyph to use for each letter.</p></div></header><style type="text/css">.font-variant { font-size: 1.2em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-variant: normal;">font-variant: normal;</code></p><div class="example-description"><p>Each letter uses its <strong>normal</strong> glyph.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-variant" id="font-variant-normal">Hello world</div></div></aside><style type="text/css">#font-variant-normal{ font-variant:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-variant: small-caps;">font-variant: small-caps;</code></p><div class="example-description"><p>Each letter uses its <strong>small capitalized</strong> version.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-variant" id="font-variant-small-caps">Hello world</div></div></aside><style type="text/css">#font-variant-small-caps{ font-variant:small-caps;}</style></section></section><section id="font-weight" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font-weight/" data-property-name="font-weight" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font-weight">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font-weight" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font-weight"><span>#</span>font-weight</a></h2><div class="property-description"><p>Defines the weight of the text.</p></div></header><style type="text/css">.font-weight { font-size: 1.2em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: normal;">font-weight: normal;</code></p><div class="example-description"><p>The text is in <strong>normal</strong> weight.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-weight" id="font-weight-normal">Hello world</div></div></aside><style type="text/css">#font-weight-normal{ font-weight:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: bold;">font-weight: bold;</code></p><div class="example-description"><p>The text becomes <strong>bold</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-weight" id="font-weight-bold">Hello world</div></div></aside><style type="text/css">#font-weight-bold{ font-weight:bold;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: 600;">font-weight: 600;</code></p><div class="example-description"><p>You can use <strong>numeric</strong> values. They all correspond to a particular <strong>named weight</strong>:</p><ul><li><strong>100</strong> Thin</li><li><strong>200</strong> Extra Light</li><li><strong>300</strong> Light</li><li><strong>400</strong> Normal</li><li><strong>500</strong> Medium</li><li><strong>600</strong> Semi Bold</li><li><strong>700</strong> Bold</li><li><strong>800</strong> Extra Bold</li><li><strong>900</strong> Ultra Bold</li></ul><p>If the font family doesn&#39;t provide the requested weight, it will use the closest available one.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-weight" id="font-weight-600">Hello world</div></div></aside><style type="text/css">#font-weight-600{ font-weight:600;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="font-weight: lighter;">font-weight: lighter;</code></p><div class="example-description"><p>You can use <strong>relative</strong> keywords: <code>lighter</code> or <code>bolder</code>. The browser will use the next available weight.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div font-weight" id="font-weight-lighter">Hello world</div></div></aside><style type="text/css">#font-weight-lighter{ font-weight:lighter;}</style></section></section><section id="font" class="property property--shorthand"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/font/" data-property-name="font" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="font">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/font" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#font"><span>#</span>font</a></h2><div class="property-description"><p>Shorthand property for <code class="shorthand"><a class="hash" href="{{site.url}}/property/font-style" data-property-name="font-style">font-style</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/font-variant" data-property-name="font-variant">font-variant</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/font-weight" data-property-name="font-weight">font-weight</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/font-size" data-property-name="font-size">font-size</a></code> <code class="shorthand"><a class="hash" href="{{site.url}}/property/line-height" data-property-name="line-height">line-height</a></code> and <code class="shorthand"><a class="hash" href="{{site.url}}/property/font-family" data-property-name="font-family">font-family</a></code>.</p></div></header></section><section id="letter-spacing" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/letter-spacing/" data-property-name="letter-spacing" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="letter-spacing">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/letter-spacing" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#letter-spacing"><span>#</span>letter-spacing</a></h2><div class="property-description"><p>Defines the spacing between the characters of a block of text.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="letter-spacing: normal;">letter-spacing: normal;</code></p><div class="example-description"><p>The spacing between the characters is <strong>normal</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div letter-spacing" id="letter-spacing-normal">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#letter-spacing-normal{ letter-spacing:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="letter-spacing: 2px;">letter-spacing: 2px;</code></p><div class="example-description"><p>You can use <strong>pixel</strong> values.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div letter-spacing" id="letter-spacing-2px">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#letter-spacing-2px{ letter-spacing:2px;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="letter-spacing: 0.1em;">letter-spacing: 0.1em;</code></p><div class="example-description"><p>You can use <strong>em</strong> values: this allows the spacing to remain <em>relative</em> to the font-size.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div letter-spacing" id="letter-spacing-01em">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#letter-spacing-01em{ letter-spacing:0.1em;}</style></section></section><section id="line-height" class="property"><header class="property-header"><nav class="property-links"><span class="property-collections"><span>In collections:</span> <a href="{{site.url}}/box-model/"><strong>box-model</strong> </a><a href="{{site.url}}/typography/"><strong>typography</strong> </a></span><a class="property-links-direct" href="{{site.url}}/property/line-height/" data-property-name="line-height" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="line-height">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/line-height" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#line-height"><span>#</span>line-height</a></h2><div class="property-description"><p>Defines the height of a single line of text.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="line-height: normal;">line-height: normal;</code></p><div class="example-description"><p>Reverts to the <strong>default</strong> value of the browser.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div line-height" id="line-height-normal"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#line-height-normal{ line-height:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-recommended" data-tooltip="This type of value is recommended for this property">recommended</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="line-height: 1.6;">line-height: 1.6;</code></p><div class="example-description"><p>You can use <strong>unitless</strong> values: the line height will be relative to the font size.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div line-height" id="line-height-16"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#line-height-16{ line-height:1.6;}</style><style type="text/css">#line-height-16 .block { line-height: 1.6; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="line-height: 30px;">line-height: 30px;</code></p><div class="example-description"><p>You can use <strong>pixel</strong> values.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div line-height" id="line-height-30px"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#line-height-30px{ line-height:30px;}</style><style type="text/css">#line-height-30px .block { line-height: 30px; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="line-height: 0.8em;">line-height: 0.8em;</code></p><div class="example-description"><p>You can use <strong>em</strong> values: like with unitless values, the line height will be relative to the font size.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div line-height" id="line-height-08em"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#line-height-08em{ line-height:0.8em;}</style><style type="text/css">#line-height-08em .block { line-height: 0.8em; }</style></section></section><section id="text-align" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-align/" data-property-name="text-align" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-align">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-align" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-align"><span>#</span>text-align</a></h2><div class="property-description"><p>Defines how the text content of the element is horizontally aligned.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-align: left;">text-align: left;</code></p><div class="example-description"><p>The text content is aligned to the <strong>left</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-align" id="text-align-left"><p class="block block--alpha"><strong>Hello world</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div></div></aside><style type="text/css">#text-align-left{ text-align:left;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-align: right;">text-align: right;</code></p><div class="example-description"><p>The text content is aligned to the <strong>right</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-align" id="text-align-right"><p class="block block--alpha"><strong>Hello world</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div></div></aside><style type="text/css">#text-align-right{ text-align:right;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-align: center;">text-align: center;</code></p><div class="example-description"><p>The text content is <strong>centered</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-align" id="text-align-center"><p class="block block--alpha"><strong>Hello world</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div></div></aside><style type="text/css">#text-align-center{ text-align:center;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-align: justify;">text-align: justify;</code></p><div class="example-description"><p>The text content is <strong>justified</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-align" id="text-align-justify"><p class="block block--alpha"><strong>Hello world</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut.</p></div></div></aside><style type="text/css">#text-align-justify{ text-align:justify;}</style></section></section><section id="text-decoration" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-decoration/" data-property-name="text-decoration" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-decoration">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-decoration" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-decoration"><span>#</span>text-decoration</a></h2><div class="property-description"><p>Defines how the text content of the element is decorated.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-decoration: none;">text-decoration: none;</code></p><div class="example-description"><p>Removes any text decoration.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-decoration" id="text-decoration-none">Hello world</div></div></aside><style type="text/css">#text-decoration-none{ text-decoration:none;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-decoration: underline;">text-decoration: underline;</code></p><div class="example-description"><p>Underlines the text content.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-decoration" id="text-decoration-underline">Hello world</div></div></aside><style type="text/css">#text-decoration-underline{ text-decoration:underline;}</style></section></section><section id="text-indent" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-indent/" data-property-name="text-indent" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-indent">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-indent" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-indent"><span>#</span>text-indent</a></h2><div class="property-description"><p>Defines the indentation of the element&#39;s first line of text.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-indent: 0;">text-indent: 0;</code></p><div class="example-description"><p>The text is <strong>not</strong> indented.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-indent" id="text-indent-0"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#text-indent-0{ text-indent:0;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-indent: 40px;">text-indent: 40px;</code></p><div class="example-description"><p>You can use <strong>numeric values</strong> like <strong>pixels</strong>, <strong>(r)em</strong>, <strong>percentages</strong>...</p><p>Notice how only the <em>first</em> line is indented.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-indent" id="text-indent-40px"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#text-indent-40px{ text-indent:40px;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-indent: -2em;">text-indent: -2em;</code></p><div class="example-description"><p>You can also use <strong>negative</strong> values.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-indent" id="text-indent--2em"><p class="block block--alpha">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</p></div></div></aside><style type="text/css">#text-indent--2em{ text-indent:-2em;}</style></section></section><section id="text-overflow" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-overflow/" data-property-name="text-overflow" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-overflow">Share</a> <a target="_blank" href="http://caniuse.com/#feat=text-overflow" data-tooltip="See on Can I use..." rel="external">Can I use</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-overflow" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-overflow"><span>#</span>text-overflow</a></h2><div class="property-description"><p>Defines how the hidden text content behaves if it&#39;s overflowing.</p></div></header><style type="text/css">.text-overflow { display: flex; }</style><style type="text/css">.text-overflow .block { overflow: hidden;white-space: nowrap;width: 5em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-overflow: clip;">text-overflow: clip;</code></p><div class="example-description"><p>The text content is <strong>clipped</strong> and not accessible.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-overflow" id="text-overflow-clip"><p class="block block--alpha">Hello world</p></div></div></aside><style type="text/css">#text-overflow-clip{ text-overflow:clip;}</style><style type="text/css">#text-overflow-clip .block { text-overflow: clip; }</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-overflow: ellipsis;">text-overflow: ellipsis;</code></p><div class="example-description"><p>The overflowing content is replaced by an <strong>ellipsis</strong>: <code>…</code></p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-overflow" id="text-overflow-ellipsis"><p class="block block--alpha">Hello world</p></div></div></aside><style type="text/css">#text-overflow-ellipsis{ text-overflow:ellipsis;}</style><style type="text/css">#text-overflow-ellipsis .block { text-overflow: ellipsis; }</style></section></section><section id="text-shadow" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-shadow/" data-property-name="text-shadow" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-shadow">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-shadow" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-shadow"><span>#</span>text-shadow</a></h2><div class="property-description"><p>Defines the shadow of the text content.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-shadow: none;">text-shadow: none;</code></p><div class="example-description"><p>The text content has <strong>no shadow</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-shadow" id="text-shadow-none">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-shadow-none{ text-shadow:none;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-shadow: 2px 6px;">text-shadow: 2px 6px;</code></p><div class="example-description"><p>You need at least <strong>two values</strong>:</p><ul><li>the first is the <em>horizontal</em> offset</li><li>the second is the <em>vertical</em> offset</li></ul><p>The shadow color will be inherited from the text color.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-shadow" id="text-shadow-2px-6px">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-shadow-2px-6px{ text-shadow:2px 6px;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-shadow: 2px 6px red;">text-shadow: 2px 6px red;</code></p><div class="example-description"><p>You can define a <strong>color</strong> as the <em>last</em> value.</p><p>As with <code class="shorthand"><a href="http://cssreference.io/#color">color</a></code>, you can use color names, hexadecimal, rgb, hsl...</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-shadow" id="text-shadow-2px-6px-red">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-shadow-2px-6px-red{ text-shadow:2px 6px red;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-shadow: 2px 4px 10px red;">text-shadow: 2px 4px 10px red;</code></p><div class="example-description"><p>The optional <strong>third value</strong> defines the <strong>blur</strong> of the shadow.</p><p>The color will be diffused across 10px in this example, from opaque to transparent.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-shadow" id="text-shadow-2px-4px-10px-red">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-shadow-2px-4px-10px-red{ text-shadow:2px 4px 10px red;}</style></section></section><section id="text-transform" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/text-transform/" data-property-name="text-transform" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-transform">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-transform" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#text-transform"><span>#</span>text-transform</a></h2><div class="property-description"><p>Defines how the text content should be transformed.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-transform: none;">text-transform: none;</code></p><div class="example-description"><p>Removes any text transformation: the text will appear the same as in the HTML code.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-transform" id="text-transform-none"><strong>Hello world!</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-transform-none{ text-transform:none;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-transform: capitalize;">text-transform: capitalize;</code></p><div class="example-description"><p>Turns the <strong>first letter</strong> of each word into a <strong>capital</strong> letter.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-transform" id="text-transform-capitalize"><strong>Hello world!</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-transform-capitalize{ text-transform:capitalize;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-transform: uppercase;">text-transform: uppercase;</code></p><div class="example-description"><p>Turns <strong>all letters</strong> into <strong>capital</strong> letters.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-transform" id="text-transform-uppercase"><strong>Hello world!</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-transform-uppercase{ text-transform:uppercase;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-transform: lowercase;">text-transform: lowercase;</code></p><div class="example-description"><p>Turns <strong>all letters</strong> into <strong>lowercase</strong> letters.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div text-transform" id="text-transform-lowercase"><strong>Hello world!</strong><br>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet.</div></div></aside><style type="text/css">#text-transform-lowercase{ text-transform:lowercase;}</style></section></section><section id="white-space" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/white-space/" data-property-name="white-space" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="white-space">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/white-space" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#white-space"><span>#</span>white-space</a></h2><div class="property-description"><p>Defines how the element&#39;s white space is handled.</p></div></header><style type="text/css">.white-space { font-family: "Source Code Pro", monospace;font-size: 0.7rem;width: 18em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="white-space: normal;">white-space: normal;</code></p><div class="example-description"><p>Sequences of spaces are combined into one.<br>Line breaks are ignored.<br>The text content is wrapped.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div white-space block block--alpha" id="white-space-normal">#parent .selector ul li blockquote{ color: red; font-size: 1rem; }</div></div></aside><style type="text/css">#white-space-normal{ white-space:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="white-space: nowrap;">white-space: nowrap;</code></p><div class="example-description"><p>Sequences of spaces are combined into one.<br>Line breaks are ignored.<br>The text content is <strong>not</strong> wrapped and remains on a <strong>single line</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div white-space block block--alpha" id="white-space-nowrap">#parent .selector ul li blockquote{ color: red; font-size: 1rem; }</div></div></aside><style type="text/css">#white-space-nowrap{ white-space:nowrap;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="white-space: pre;">white-space: pre;</code></p><div class="example-description"><p>The white space is <strong>exactly preserved</strong>.</p><ul><li>Sequences of spaces are preserved</li><li>Lines break only on new lines and <code>&lt;br&gt;</code></li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div white-space block block--alpha" id="white-space-pre">#parent .selector ul li blockquote{ color: red; font-size: 1rem; }</div></div></aside><style type="text/css">#white-space-pre{ white-space:pre;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="white-space: pre-wrap;">white-space: pre-wrap;</code></p><div class="example-description"><p>The white space is <strong>mostly preserved</strong>.</p><ul><li>Sequences of spaces are preserved</li><li>Lines break on new lines, <code>&lt;br&gt;</code>, but also when reaching the end of the element</li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div white-space block block--alpha" id="white-space-pre-wrap">#parent .selector ul li blockquote{ color: red; font-size: 1rem; }</div></div></aside><style type="text/css">#white-space-pre-wrap{ white-space:pre-wrap;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="white-space: pre-line;">white-space: pre-line;</code></p><div class="example-description"><p>Only <strong>new lines</strong> are preserved.</p><ul><li>Sequences of spaces are <strong>combined</strong> into one</li><li>Lines break on new lines, <code>&lt;br&gt;</code>, but also when reaching the end of the element</li></ul></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div white-space block block--alpha" id="white-space-pre-line">#parent .selector ul li blockquote{ color: red; font-size: 1rem; }</div></div></aside><style type="text/css">#white-space-pre-line{ white-space:pre-line;}</style></section></section><section id="word-break" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/word-break/" data-property-name="word-break" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="word-break">Share</a> <a target="_blank" href="http://caniuse.com/#feat=word-break" data-tooltip="See on Can I use..." rel="external">Can I use</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/word-break" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#word-break"><span>#</span>word-break</a></h2><div class="property-description"><p>Defines how words should break when reaching the end of a line.</p></div></header><style type="text/css">.word-break { font-family: "Source Code Pro", monospace;width: 18em; }</style><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="word-break: normal;">word-break: normal;</code></p><div class="example-description"><p>Words with no space will <strong>not</strong> break. Sequences of uninterrupted characters will be displayed on a single line.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div word-break block block--alpha" id="word-break-normal">Thequickbrownfoxjumpsoverthelazydog</div></div></aside><style type="text/css">#word-break-normal{ word-break:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="word-break: break-all;">word-break: break-all;</code></p><div class="example-description"><p>Words with no space will <strong>break</strong> as soon as they reach the end of a line.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div word-break block block--alpha" id="word-break-break-all">Thequickbrownfoxjumpsoverthelazydog</div></div></aside><style type="text/css">#word-break-break-all{ word-break:break-all;}</style></section></section><section id="word-spacing" class="property"><header class="property-header"><nav class="property-links"><a class="property-collection" href="{{site.url}}/typography/">In collection: <strong>typography</strong> </a><a class="property-links-direct" href="{{site.url}}/property/word-spacing/" data-property-name="word-spacing" data-tooltip="Single page for this property">Permalink</a> <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="word-spacing">Share</a> <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/word-spacing" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a></nav><h2 class="property-name"><a href="#word-spacing"><span>#</span>word-spacing</a></h2><div class="property-description"><p>Defines the spacing between words of a block of text.</p></div></header><section class="example"><header class="example-header"><p class="example-name"><code class="example-default" data-tooltip="This is the property's default value">default</code> <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="word-spacing: normal;">word-spacing: normal;</code></p><div class="example-description"><p>The spacing between the characters is <strong>normal</strong>.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div word-spacing" id="word-spacing-normal">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#word-spacing-normal{ word-spacing:normal;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="word-spacing: 5px;">word-spacing: 5px;</code></p><div class="example-description"><p>You can use <strong>pixel</strong> values.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div word-spacing" id="word-spacing-5px">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#word-spacing-5px{ word-spacing:5px;}</style></section><section class="example"><header class="example-header"><p class="example-name"><code class="example-value" data-tooltip="Click to copy" data-clipboard-text="word-spacing: 2em;">word-spacing: 2em;</code></p><div class="example-description"><p>You can use <strong>em</strong> values: this allows the spacing to remain <em>relative</em> to the font-size.</p></div></header><aside class="example-preview"><div class="example-browser"><i></i><i></i><i></i></div><div class="example-output"><div class="example-output-div word-spacing" id="word-spacing-2em">The quick brown fox jumps over the lazy dog</div></div></aside><style type="text/css">#word-spacing-2em{ word-spacing:2em;}</style></section></section>